import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/user-service/user/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getUserInfo(id) {
  return request.get(`/user-service/user/${id}`)
}

// 获取运营人员列表
export const getOperatorList = innerCode => request.get(`/user-service/user/operatorList/${innerCode}`)

// 获取人员工作量列表
export const getWorkLoadList = params => request.get('/user-service/user/searchUserWork', { params })
